<template>
  <div id="app" >
    <!-- <button @click="Prompt(id)" title="默认按钮" type="" :key="id">
      {{ name }}
    </button> -->
    <el-button type="primary">{{name}}</el-button>
  </div>
</template>

<script>
export default {
  props: ['id', 'name'],
  methods: {
    Prompt (id) {
      switch (id) {
        case 1:
          this.list[id].type = ''
          break
        case 2:
          this.list[id].type = 'primary'
          break
        case 3:
          this.list[id].type = 'success'
          break
        case 4:
          this.list[id].type = 'info'
          break
        case 5:
          this.list[id].type = 'warning'
          break
        case 6:
          this.list[id].type = 'danger'
          break
      }
    }
  }
}
</script>

<style lang="less">

</style>
